import request from '@/utils/request'

export const loginAPI = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export const getUserInfoAPI = () => {
  return request('/sys/profile')
}

export const updatePswAPI = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}

